import request from "@/http/request";
/** */
//按月查询详情
export function fixedInvestReportDetails(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/reportDetails`,
    data,
    method: "post",
  });
}

// 固投投资项目列表
export function fixedInvestProjectList(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/projectList`,
    data,
    method: "post",
  });
}

// 固投投资项计划调整记录
export function fixedInvestPlannedAmountChangeRecord(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/plannedAmountChangeRecord`,
    data,
    method: "post",
  });
}

// 固投投资项计划明细填报
export function fixedInvestReport(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/investReport`,
    data,
    method: "post",
  });
}

// 固投投资项计划年度计划调整
export function fixedInvestEditPlannedAmount(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/editPlannedAmount`,
    data,
    method: "post",
  });
}
// 固投投资项计划 修改填报明细
export function fixedInvestEditDetail(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/editDetail`,
    data,
    method: "post",
  });
}

// 固投投资项计划 删除填报明细
export function fixedInvestDeleteInvestDetail(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/deleteInvestDetail`,
    data,
    method: "post",
  });
}

// 固投投资项计划 导出填报明细
export function fixedInvestExport(data) {
  return request({
    url: `/bf-finance/monthReport/fixedInvest/export`,
    data,
    method: "post",
    responseType: "blob",
  });
}

//股投

//按月查询详情
export function equityInvestReportDetails(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/reportDetails`,
    data,
    method: "post",
  });
}

// 固投投资项目列表
export function equityInvestProjectList(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/projectList`,
    data,
    method: "post",
  });
}

// 固投投资项计划调整记录
export function equityInvestPlannedAmountChangeRecord(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/plannedAmountChangeRecord`,
    data,
    method: "post",
  });
}

// 固投投资项计划明细填报
export function equityInvestReport(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/investReport`,
    data,
    method: "post",
  });
}

// 固投投资项计划年度计划调整
export function equityInvestEditPlannedAmount(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/editPlannedAmount`,
    data,
    method: "post",
  });
}
// 固投投资项计划 修改填报明细
export function equityInvestEditDetail(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/editDetail`,
    data,
    method: "post",
  });
}

// 固投投资项计划 删除填报明细
export function equityInvestDeleteInvestDetail(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/deleteInvestDetail`,
    data,
    method: "post",
  });
}

// 固投投资项计划 导出填报明细
export function equityInvestExport(data) {
  return request({
    url: `/bf-finance/monthReport/equityInvest/export`,
    data,
    method: "post",
    responseType: "blob",
  });
}

// 年度汇总导出
export function summaryInvestExport(params) {
  return request({
    url: `/bf-finance/monthReport/summary/export`,
    params,
    method: "get",
    responseType: "blob",
  });
}

// 年度汇总列表
export function summaryInvestList(params) {
  return request({
    url: `/bf-finance/monthReport/summary/list`,
    params,
    method: "get",
  });
}

// 项目维护-固定投资
export function editFixedProjectApi(data) {
  return request({
    url: `bf-finance/monthReport/fixedInvest/editProject`,
    data,
    method: "post",
  });
}

// 项目维护-股权投资
export function editEquityProjectApi(data) {
  return request({
    url: `bf-finance/monthReport/equityInvest/editProject`,
    data,
    method: "post",
  });
}

